package com.tarena.lbs.business.dao.repository;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.po.StorePO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BusinessRepository {
    Page<BusinessPO> getBusinessPageList(BusinessQuery businessQuery);

    void save(BusinessPO po);

    BusinessPO selectOne(LambdaQueryWrapper<BusinessPO> queryWrapper);
    List<StorePO> getStoreListByBusinessId(Integer businessId);
    int countByBusinessName(String businessName);

    BusinessPO selectById(Integer businessId);

    void updateById(BusinessPO businessPO);

    void deleteById(Integer businessId);
}